package org.gw.building.repositories.dkgg;

import org.gw.building.model.Dkxx;
import org.gw.building.model.Ybmxx;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface DkxxRepository extends JpaRepository<Dkxx, String>{
	@Query("from Dkxx t where (?1 is null or t.xhgh = ?1) and (?2 is null or t.kc = ?2) order by t.xhgh desc")
	Page<Ybmxx> queryPage(String xhgh, String kc, Pageable pageable);
}
